var WebjxCom = (document.createElement() && document.getElementsByTagName());
window.onload = pinballEffect;
function pinballEffect()
{
    if (!WebjxCom) return;
    var allElements = document.getElementsByTagName('div');
    var originalBackgrounds=new Array();
    for (var i=0; i<allElements.length; i++)
    {
        if (allElements[i].className=="left")
        {
            allElements[i].onmouseover = mouseGoesOver;
            allElements[i].onmouseout = mouseGoesOut;
        }
    }
    for (var i=0; i<allElements.length; i++)
    {
        if (allElements[i].className=="left leftend")
        {
            allElements[i].onmouseover = mouseGoesOver1;
            allElements[i].onmouseout = mouseGoesOut1;
        }
    }
    for (var i=0; i<allElements.length; i++)
    {
        if (allElements[i].className=="leftli")
        {
            allElements[i].onmouseover = mouseGoesOver2;
            allElements[i].onmouseout = mouseGoesOut2;
        }
    }
    for (var i=0; i<allElements.length; i++)
    {
        if (allElements[i].className=="leftchild")
        {
            allElements[i].onmouseover = mouseGoesOver3;
            allElements[i].onmouseout = mouseGoesOut3;
        }
    }
}
function mouseGoesOver()
{
    this.className = "left left_hover";
}


function mouseGoesOver1()
{
    this.className = "left leftend left_hover";
}


function mouseGoesOver2()
{
    this.className = "leftli leftli_hover";
}
function mouseGoesOver3()
{
    this.className = "leftchild leftchild_hover";
}


function mouseGoesOut()
{
    this.className = "left";
}

function mouseGoesOut1()
{
    this.className = "left leftend";
}

function mouseGoesOut2()
{
    this.className = "leftli";
}
function mouseGoesOut3()
{
    this.className = "leftchild";
}


pinballEffect();

